package com.intelligentmeterreadingsys.Broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.sax.StartElementListener;
import android.widget.Toast;

/**
 * anroid 开机执行事件
 * @author king
 *
 */
public class BootReceiver extends BroadcastReceiver{
	
	private static final String action="com.waterlist.service";

	@Override
	public void onReceive(Context context, Intent intent) {
		Toast.makeText(context, "启动", Toast.LENGTH_LONG).show();
		Intent intents=new Intent();
		intents.setAction(action);
		context.startService(intents);
	
	}

}
